let lastEvent
['click', 'touchstart', 'mousedown', 'keydown', 'mouseover'].forEach(eventType => {
  document.addEventListener(eventType, (event) => {
    lastEvent = event
  }, {
    capture: true, // 捕获阶段
    passive: true // 被动模式 默认不阻止默认事件
  })
})

export default function () {
  return lastEvent
}
